
<?php
//$text = mb_convert_encoding('(&#x3c;&#x21;&#x44;&#x4f;&#x43;&#x54;', "UTF-8", "HTML-ENTITIES"); 
//var 
$test="text";
echo htmlspecialchars($test);

//echo $text;
//echo '<script>';
//echo 'alert("';
//echo $text;
//echo '");';
//echo '</script>' 
?>
